<layout name='layout_info' />
<div id="result" class="result none"></div>
<div class="mainbox">
    <div id="nav" class="mainnav_title">
        <div id="lang"><a><eq name="mode" value="1">新增<else/>修改</eq>角色</a></div>
        <ul><a href="__URL__/index">返回列表</a></ul>
    </div>
</div>
<form name="myform" id="myform" action="__URL__/save" method="post">
    <table cellpadding=0 cellspacing=0 class="table_form" width="90%">
        <tr>
            <th width="15%" ><font color="red">*</font>角色名称:</th>
            <td width="80%" id="box_mc">
                <input type="text" class="input-text " validate=" minlength:1, maxlength:20, required:true" name="mc"  id="mc" value="<present name="vo">{$vo.mc}</present>" size="22"  />
            </td>
        </tr>
        <tr>
            <th width="15%" >继承:</th>
            <td width="80%" id="box_incs">
               <volist name="list" id="row" mod="5" >
                   <input type="checkbox" name="chkRole[]" value="{$row.id}" <present name="vo"><in name="row['id']" value="$vo['includeids']">checked="checked"</in></present>/>{$row.mc}
                   <eq name="mod" value="4"><br/></eq>
               </volist>
            </td>
        </tr>
    </table>
    <div id="btnbox" class="btn">
        <input type="hidden"  name="mode" value="{$mode}" />
        <eq name="mode" value="2">
        <input type="hidden"  name="id" value="{$vo.id}" />
        <input type="hidden"  name="old_mc" value="{$vo.mc}" />
        </eq>
        <INPUT TYPE="submit"  value="提交" class="button" >
        <input TYPE="reset"  value="取消" class="button">
    </div>
</form>
<script type="text/javascript">
    
        <present name="vo">
        $("#use_flag").val("{$vo.use_flag}");
        </present>
</script>